﻿namespace JESAI.Application.Abstractions.Dtos
{
    /// <summary>
    /// 返回基类
    /// </summary>
    public class BaseOutput
    {
        public BaseOutput()
        {
            ErrorCode = "000000";
            Message = "操作成功";
        }
        public BaseOutput(string ErrorMessage)
        {
            ErrorCode = "000001";
            Message = ErrorMessage;
        }
        public string ErrorCode { get; set; }
        public string Message { get; set; }
    }
    /// <summary>
    /// 返回基类
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class BaseOutput<T> : BaseOutput
    {
        public BaseOutput()
        {

        }
        public BaseOutput(T data)
        {
            Data = data;
        }
        public T Data { set; get; }
    }
}
